package com.myBlast.client.models;

import java.io.Serializable;
import com.extjs.gxt.ui.client.data.BaseTreeModel;

/**
 * Model object for the Non-Leaf Node
 * @author Parit Bansal
 */
public class NonLeafTaxonomyModel extends BaseTreeModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static int ID = 0;
	
	public NonLeafTaxonomyModel()
	{
		ID++;
		set("id",ID);
	}
	
	public NonLeafTaxonomyModel(String name) {
	    set("id", ID++);
	    set("name", name);
	  }
	
	public NonLeafTaxonomyModel(String name, BaseTreeModel[] children)
	{
		this(name);
		for (int i=0;i<children.length;i++)
		{
			add(children[i]);
		}
	}
}// NonLeafTaxonomyModel
